package com.linchaoen.elema.model.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class Cart {

    private Integer id;

    @JsonProperty("food_id")
    private Integer foodId;

    @JsonProperty("food_name")
    private String foodName;

    private Double price;

    @JsonProperty("user_id")
    private Integer userId;

    private Integer num;

    @JsonProperty("cover_img")
    private String coverImg;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFoodId() {
        return foodId;
    }

    public void setFoodId(Integer foodId) {
        this.foodId = foodId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getCoverImg() {
        return coverImg;
    }

    public void setCoverImg(String coverImg) {
        this.coverImg = coverImg;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", foodId=" + foodId +
                ", foodName='" + foodName + '\'' +
                ", price=" + price +
                ", userId=" + userId +
                ", num=" + num +
                ", coverImg='" + coverImg + '\'' +
                '}';
    }

}
